<?php

if (!init()) {
  redirect('?action=login');
}


if ($_GET['like'] != '') {
  likeImageComment($_GET['cid']);
} else if ($_GET['dislike'] != '') {
  dislikeImageComment($_GET['cid']);
}
$initiatorAction = \controller\ControllerUtil::getEncodedActionFromUrlWithParameters($_SERVER['HTTP_REFERER']);

redirect("?action=msg&header=header.like.success&body=body.like.success&view=" . $initiatorAction);

